package com.huage.courseplatform.framework.model.param;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 分页参数
 * @param <T>
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value="分页请求参数",description="分页请求参数")
public class PagePARAM implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "分页页数不能为空")
    @ApiModelProperty(value = "分页页数",required = true)
    private Integer pageNum;

    @NotNull(message = "单页数据量不能为空")
    @ApiModelProperty(value = "分页单页数据量",required = true)
    private Integer pageSize;

    @ApiModelProperty(value = "分页单页数据量",required = true)
    List<OrderPARAM> orderParams;

    @ApiModelProperty(value = "分页单页数据量",required = true)
    List<SearchPARAM> searchPARAMS;

}
